package com.scau.controller;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.scau.pojo.Brand;
import com.scau.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {
    /*@Autowired
    IBrandService brandServiceI;

    @RequestMapping("/test")
    @ResponseBody
    public String hello(String id) throws JsonProcessingException {
        Brand brand = brandServiceI.selectById(id);
        ObjectMapper objectMapper = new ObjectMapper();

        return objectMapper.writeValueAsString(brand);
    }*/
}
